package com.zx.jhpt.po;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ReplyUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "REPLYUSER")
public class ReplyUser implements java.io.Serializable {

	// Fields

	private ReplyUserId id;

	// Constructors

	/** default constructor */
	public ReplyUser() {
	}

	/** full constructor */
	public ReplyUser(ReplyUserId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "replyid", column = @Column(name = "REPLYID", nullable = false, length = 64)),
			@AttributeOverride(name = "cycle", column = @Column(name = "CYCLE", nullable = false, length = 64)),
			@AttributeOverride(name = "userid", column = @Column(name = "USERID", nullable = false, length = 64)) })
	public ReplyUserId getId() {
		return this.id;
	}

	public void setId(ReplyUserId id) {
		this.id = id;
	}

}